<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <script language="javascript" type="text/javascript" src="<%=basePath%>datemaker/WdatePicker.js"></script>
  		
  		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  		<script type="text/javascript" src="manage/js/jquery.js"></script>
		<script type="text/javascript" src="manage/js/addbg.js"></script>
		<script type="text/javascript" src="manage/js/formAttendance.js"></script>
		<link rel="stylesheet" type="text/css" href="manage/css/addTravel.css" />
  
  </head>
  <center>
  <body>

 	<s:iterator value="errorList">
 		<s:property/>
 	</s:iterator>
 	<form action="attendanceRegister" method="post" name="attendance" onsubmit="return login()">
 	
<table>
	<thead>
		<tr>
			<td colspan="2" align="center">考&nbsp;勤&nbsp;登&nbsp;记</td>
		</tr>
	</thead>
 		<tbody>
 			<tr>
 				<td>员&nbsp;工&nbsp;编&nbsp;号</td>
 				<td><input type="text" name="staffId" id="staffId" value="${attendance.staff.staffId}"/><span class="emphasize">*</span></td>
 			</tr>
 			<tr>
 				<td>类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型</td>
 				<td>
 					<select name="attendanceTypeId" id="attendanceTypeId">
 						<option value="0">=请选择=</option>
	 					<option value="18" <s:if test="attendance.type.name=='迟到'">selected="selected"</s:if>>迟到</option>
	 					<option value="19" <s:if test="attendance.type.name=='早退'">selected="selected"</s:if>>早退</option>
	 					<option value="20" <s:if test="attendance.type.name=='请假'">selected="selected"</s:if>>请假</option>
	 					<option value="21" <s:if test="attendance.type.name=='旷工'">selected="selected"</s:if>>旷工</option>
	 					<option value="4" <s:if test="attendance.type.name=='其他'">selected="selected"</s:if>>其他</option>
	 				</select>
	 				<span class="emphasize">*</span>
	 			</td>
	 		</tr>
	 		<tr>
 				<td>开&nbsp;始&nbsp;时&nbsp;间</td>
 				<td><input type="text" class="Wdate" onclick="WdatePicker()" name="attendance.start" id="start" value="<s:date name="attendance.start" format="yyyy-MM-dd"/>"/>
 				<span class="emphasize">*</span>
 				</td>
 			</tr>
 			<tr>
 				<td>结&nbsp;束&nbsp;时&nbsp;间</td>
 				<td><input type="text" class="Wdate" onclick="WdatePicker()" name="attendance.end" id="end" value="<s:date name="attendance.end" format="yyyy-MM-dd"/>"/>
 				<span class="emphasize">*</span>
 				</td>
 			</tr>
 			<tr>
 				<td>扣&nbsp;费&nbsp;金&nbsp;额</td>
 				<td><input type="text" name="attendance.payment" id="payment" onblur="checkNumber()" value="${attendance.payment }"/><span class="emphasize">*</span></td>
 			</tr>
 		</tbody>
		<tfoot>
 		<tr>
	 		<td colspan="2" align="center" height="45px">
				<input type="text" name="attendance.id" value="${attendance.id}" style="display: none;"/>
 				<input class="submit" type="submit" value="提交"/>
		 		<input class="reset" type="reset" value="重置"/>
 			</td>
 		</tr>
 		</tfoot>
 				
 		</table>		
 	</form>
  </body>
  </center>	
</html>
